﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="EngineNotifications.xaml.cs" >
//   J. Prinz
// </copyright>
// <summary>
//   Interaktionslogik für EngineNotifications.xaml
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace AutomationMLMapper.Controls
{
    using System.Windows;

    using AutomationMLMapper.ViewModels;

    /// <summary>
    ///   Interaktionslogik für EngineNotifications.xaml
    /// </summary>
    public partial class EngineNotifications
    {
        #region Constructors and Destructors

        /// <summary>
        /// Initializes a new instance of the <see cref="EngineNotifications"/> class. 
        /// </summary>
        public EngineNotifications()
        {
            this.InitializeComponent();
        }

        #endregion

        #region Methods

        /// <summary>
        /// TODO The button_ click.
        /// </summary>
        /// <param name="sender">
        /// TODO The sender. 
        /// </param>
        /// <param name="e">
        /// TODO The e. 
        /// </param>
        private void ButtonClick(object sender, RoutedEventArgs e)
        {
            if (this.DataContext is AutomationMLMessage)
            {
                (this.DataContext as AutomationMLMessage).ShowEngineMessageContainer = false;
            }
        }

        #endregion
    }
}